<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: esp8266/system.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_cc2d49507704e901eabd8a82be491fc5.html">esp8266</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">system.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="system_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef _SYSTEM_H_</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define _SYSTEM_H_</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#undef malloc</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#undef calloc</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#undef free</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">// sys.c defines alternative safe functions</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="system_8h.html#a9d4b5df3530d1bc733070a4669ba6ebc">   32</a></span>&#160;<span class="preprocessor">#define free(p) safefree(p)</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="system_8h.html#ad3a606b2415cc9127bbb52d8ed5d3191">   33</a></span>&#160;<span class="preprocessor">#define calloc(n,s) safecalloc(n,s)</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="system_8h.html#a6bb12c9cae32ecd32a4584a86c4c6c99">   34</a></span>&#160;<span class="preprocessor">#define malloc(s) safemalloc(s)</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#ifdef ESP8266</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="system_8h.html#a3d3120b9c1d6fa02648d6e317f0f6e44">reset</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="system_8h.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">size_t</span> <a class="code" href="system_8h.html#a7d3ee70a877e8e98235593af1d92a350">freeRam</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="system_8h.html#a685d93545b12079d00ffc678d3611333">PrintRam</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> *<a class="code" href="system_8h.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a> ( <span class="keywordtype">size_t</span> nmemb , <span class="keywordtype">size_t</span> size );</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> *<a class="code" href="system_8h.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a> ( <span class="keywordtype">size_t</span> size );</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="system_8h.html#a61f06ee340417c629633142e0a5db288">safefree</a> ( <span class="keywordtype">void</span> *p );</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="system_8h.html#a3d3120b9c1d6fa02648d6e317f0f6e44">reset</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="system_8h.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#endif // _SYSTEM_H_</span></div><div class="ttc" id="system_8h_html_a65ca18fba3d6cdb9ce8ca8040a96e0c5"><div class="ttname"><a href="system_8h.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a></div><div class="ttdeci">MEMSPACE void * safecalloc(size_t nmemb, size_t size)</div><div class="ttdoc">Safe Calloc - Display Error message if Calloc fails. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00128">system.c:128</a></div></div>
<div class="ttc" id="system_8h_html_aca19f0f1e5d805c1e5f61101fa4690f1"><div class="ttname"><a href="system_8h.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a></div><div class="ttdeci">MEMSPACE void * safemalloc(size_t size)</div><div class="ttdoc">Safe Malloc - Display Error message if Malloc fails. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00146">system.c:146</a></div></div>
<div class="ttc" id="system_8h_html_a3d3120b9c1d6fa02648d6e317f0f6e44"><div class="ttname"><a href="system_8h.html#a3d3120b9c1d6fa02648d6e317f0f6e44">reset</a></div><div class="ttdeci">MEMSPACE void reset(void)</div><div class="ttdoc">reset system </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00181">system.c:181</a></div></div>
<div class="ttc" id="system_8h_html_a9b9f170e9a01e51b57656fcda1f183df"><div class="ttname"><a href="system_8h.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a></div><div class="ttdeci">MEMSPACE void wdt_reset(void)</div><div class="ttdoc">reset watchdog </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00190">system.c:190</a></div></div>
<div class="ttc" id="system_8h_html_a7d3ee70a877e8e98235593af1d92a350"><div class="ttname"><a href="system_8h.html#a7d3ee70a877e8e98235593af1d92a350">freeRam</a></div><div class="ttdeci">MEMSPACE size_t freeRam(void)</div><div class="ttdoc">Return Free memory. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00104">system.c:104</a></div></div>
<div class="ttc" id="cpu_8h_html_ad0fe97585b8891f5e4f2b9a6426330a4"><div class="ttname"><a href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="ttdeci">#define MEMSPACE</div><div class="ttdef"><b>Definition:</b> <a href="cpu_8h_source.html#l00025">cpu.h:25</a></div></div>
<div class="ttc" id="system_8h_html_a61f06ee340417c629633142e0a5db288"><div class="ttname"><a href="system_8h.html#a61f06ee340417c629633142e0a5db288">safefree</a></div><div class="ttdeci">MEMSPACE void safefree(void *p)</div><div class="ttdoc">Safe free - Only free a pointer if it is in malloc memory range. We want to try to catch frees of sta...</div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00165">system.c:165</a></div></div>
<div class="ttc" id="system_8h_html_a685d93545b12079d00ffc678d3611333"><div class="ttname"><a href="system_8h.html#a685d93545b12079d00ffc678d3611333">PrintRam</a></div><div class="ttdeci">MEMSPACE void PrintRam(void)</div><div class="ttdoc">Display Free memory and regions. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00113">system.c:113</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
